<template>
  <view class="minePage">
    <loginPage v-if="!token"></loginPage>
    <userInfoPage v-else></userInfoPage>
  </view>
</template>

<script>
  import badgeMix from '@/store/tabbar-badge.js'
  import {mapState} from 'vuex'
  export default {
    mixins : [badgeMix],
    data() {
      return {
        
      };
    },
    computed:{
      ...mapState('user',['token'])
    }
  }
</script>

<style lang="scss">
page,
  .minePage{
    height: 100%;
  }

</style>
